package com.zjmzxfzhl.modules.purchase.service.bo;

import com.zjmzxfzhl.modules.purchase.controller.vo.PurchaseOrderDetailVo;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @Author timyag
 * @Date 2020/7/27 8:47
 * @Version 1.0
 */

@Getter
@Setter
public class PurchaseSupplierDetailExcelBo {
    private String orderCode;

    private String orderDate;

    private String orderUsage;

    private String contractCode;

    private String contractState;

    private String aogSituation;

    private String invoice;

    private String paymentSituation;

    private String materialName;

    private String materialSpecification;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 数量
     */
    private BigDecimal materialNum;

    private BigDecimal materialTotalPrice;

    public PurchaseSupplierDetailExcelBo() {

    }

    public PurchaseSupplierDetailExcelBo(PurchaseOrderDetailVo detailVo) {
        this.orderCode = detailVo.getOrderCode();

        this.orderDate = detailVo.getOrderDate();

        this.orderUsage = detailVo.getProjectName();

        this.contractCode = detailVo.getContractCode();

        this.contractState = detailVo.getContractState();

        this.aogSituation = detailVo.getAogSituation();

        this.invoice = detailVo.getInvoice();

        this.paymentSituation = detailVo.getPaymentSituation();

        this.materialName = detailVo.getMaterialName();

        this.materialSpecification = detailVo.getMaterialSpecification();

        /**
         * 单价
         */
        this.unitPrice = detailVo.getUnitPrice();

        /**
         * 数量
         */
        this.materialNum = detailVo.getMaterialNum();

        this.materialTotalPrice = detailVo.getMaterialTotalPrice();
    }

}
